gdk: Don't (un)set the background when destroying a window.
authorBenjamin Otte <otte@redhat.com>
Wed, 29 Sep 2010 10:07:12 +0000 (12:07 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 29 Sep 2010 10:18:17 +0000 (12:18 +0200)
This previously caused the x11 code to do a XSetWindowBackgroundPixmap
call on a window that was about to be destroyed. And that's not really
useful.

https://bugzilla.gnome.org/show_bug.cgi?id=630864

gdk/gdkwindow.c

index 098309cbc1bda962ad73f1235380892c201ec4e7..1479798b5570c2126f2e283d23fc8097955c7fdd 100644 (file)
@@ -1983,8 +1983,6 @@ _gdk_window_destroy_hierarchy (GdkWindow *window,
 
          gdk_window_free_paint_stack (window);
 
-          gdk_window_set_background_pattern (window, NULL);
-
           if (private->background)
             {
               cairo_pattern_destroy (private->background);